Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Types and Constants


Contextual Menu Selection Type Constants

NEW WITH CONTEXTUAL MENUS

These constants are returned in the outUserSelectionType parameter of the function ContextualMenuSelect to specify what the user selected from the contextual menu.

enum{    
   kCMNothingSelected  = 0,
   kCMMenuItemSelected = 1,
   kCMShowHelpSelected = 3
};

Constant descriptions

kCMNothingSelected
The user did not choose an item from the contextual menu and the application should do no further processing of the event.
kCMMenuItemSelected
The user chose one of the application's items from the menu. The application can examine the outMenuID and outMenuItem parameters of ContextualMenuSelect to see what the menu selection was, and it should then handle the selection appropriately.
kCMShowHelpSelected
The user chose the Help item from the menu. The application should open an Apple Guide database to a section appropriate for the selection. If the application supports some other form of help, it should be presented instead.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998